import React, { Component, Fragment } from 'react'
import PublicBid from './public'
import InviteBid from './invite'
import CompetitionBid from './competition'
import SingleBid from './single'
import {
  Tabs
} from 'antd'
const { TabPane } = Tabs;

class Bid extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
  }

  handleTabsChange = (key) => {
    console.log(key)
  }

  render() { 
    return (
      <Fragment>
        <Tabs defaultActiveKey="1" onChange={this.handleTabsChange} tabPosition={'left'}>
          <TabPane tab="公开招标" key="1">
            <PublicBid />
          </TabPane>
          <TabPane tab="邀请招标" key="2">
            <InviteBid />
          </TabPane>
          <TabPane tab="竞争性谈判" key="3">
            <CompetitionBid />
          </TabPane>
          <TabPane tab="单一来源" key="4">
            <SingleBid />
          </TabPane>
        </Tabs>
      </Fragment>
    )
  }
}
 
export default Bid;